package org.playground.booking.utils;

public enum PlaygroundBookingErrMsg {


    COURS_NOT_SELECTED(1,"no cours selected, please at least choose one cours"),
    USER_NOT_FOUND(2,"User %s cannot be found"),
    UNLOGGED_USER(3,"User's openid is not found, check the login"),
    UNINITIATED_BOOKING(4,"Booking is not initiated"),
    NOT_EXISTING_MERCHANT_ACCOUNT(5,"Merchant account cannot be found"),
    BOOKING_NOT_FOUND(6,"The booking to update cannot be found in the database, id : %s"),

    BOOKING_ALREADY_EXIST(7,"The booking for the playground or its children playground exist already"),





    ;

    PlaygroundBookingErrMsg(int errorCode, String errorMessage){
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    private String errorMessage;
    private int errorCode;

    public String getErrorMessage() {
        return errorCode + ":"+errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
}
